import styled from "styled-components"

export const ItemWrapper = styled.div`
  box-sizing: border-box;
  width: 25%;
  padding: 8px;

  .inner{
    width: 100%;
  }

  .cover{
    position: relative;
    box-sizing: border-box;
    /* 相对于宽度的三分之二,保证与图片一致 */
    padding: 66.66% 8px 0;
    border-radius: 3px;
    overflow: hidden;
      img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
  }

  .desc{
    margin: 10px 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: ${props => props.verifyColor};
  }

  .name{
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .price{
    margin: 8px 0;
  }
  .bottom{
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    .count{
      margin: 0 2px 0 4px;
    }
    .MuiRating-decimal{
      mask-repeat: -3px;
    }
  }
`